package ru.simplemaps.osmapi;

import android.test.AndroidTestCase;
import org.apache.http.client.HttpClient;
import org.apache.http.impl.client.DefaultHttpClient;
import org.xml.sax.SAXException;
import ru.simplemaps.osmapi.cache.impl.MyCacheImpl;
import ru.simplemaps.osmapi.common.BBox;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;

/**
 * @author quadro
 * @since 28.07.2010 23:58:51
 */
public class FullServiceTest extends AndroidTestCase {
    public void testFullService() throws IOException, SAXException, ParserConfigurationException {
        HttpClient client = new DefaultHttpClient();
        FullOSMService service = new FullOSMService(
                new OSMService(client),
                new MyCacheImpl(getContext())
        );

        OSMData data = service.getDataByBbox(new BBox(37.3967743, 55.7062241, 37.596402, 55.855275));
    }
}
